package com.mobisys.live.dao.mapper;

import com.mobisys.live.dao.model.Channel;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChannelMapper {
    int deleteByPrimaryKey(String id);

    int insert(Channel record);

    int insertSelective(Channel record);

    Channel selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Channel record);

    int updateByPrimaryKey(Channel record);

    //根据用户id返回频道列表
    List<Channel> selectByUserId(String userId);
}